<?php if (!$comment->getParent() || isset($children)): ?>

<?php 
	$odd = false;

	if (isset($num)){
		$odd = $num % 2;
	}
?>


<div class="comment">


<div class="greybox<?php echo $odd ? ' odd':''?>">
	<p class="bar"><?php echo sprintf($view->lang->get('comment')->get('comment_meta'), ($comment->getAccount() ? $comment->getAccount()->getUsername() : 'Anonymous'), $comment->getDate()->format('jS F Y, g:i A'))?> <span><a href="<?php echo (string)$replyToLink($comment->getID())?>"><?php echo $view->lang->get('comment')->get('comment_post')?></a></span></p>
	<p><?php echo $comment->getText()?></p>
</div>





<?php if (count($comment->getReplies()) > 0): ?>
	<div class="replies">
	<?php foreach($comment->getReplies() as $k => $c):?>
		<?php $view->import('comment', array('comment' => $c, 'replyToLink' => $replyToLink, 'children' => true, 'num' => $k))?>
	<?php endforeach;?>
	</div>
<?php endif;?>



</div>
<?php endif;?>